<!DOCTYPE html>

<html lang="en">

  <head>
    <title>jsonschema2pojo</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="description" content="Generate Plain Old Java Objects from JSON or JSON-Schema.">
    <meta name="keywords" content="json, jsonschema, pojo, java, javascript, jsonschema2java, jsonschema2pojo, jsonschema2dto, code generation, dto">

    <link href="http://web.jsonschema2pojo.googlecode.com/git/resources/public/lib/bootstrap.min.css" rel="stylesheet">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
    <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>
    <script src="http://web.jsonschema2pojo.googlecode.com/git/resources/public/lib/codemirror-compressed.js"></script>
    <script src="http://web.jsonschema2pojo.googlecode.com/git/resources/public/lib/runmode.js"></script>
    <script src="http://web.jsonschema2pojo.googlecode.com/git/resources/public/index.js"></script>

    <link rel="stylesheet" href="http://web.jsonschema2pojo.googlecode.com/git/resources/public/lib/codemirror.css">
    <link rel="stylesheet" href="http://web.jsonschema2pojo.googlecode.com/git/resources/public/lib/eclipse.css">
    <link rel="stylesheet" href="http://web.jsonschema2pojo.googlecode.com/git/resources/public/index.css">


    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-21062073-4']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(ga, s);
      })();
    </script>

    <style>#forkongithub a{background:#000;color:#fff;text-decoration:none;font-family:arial, sans-serif;text-align:center;font-weight:bold;padding:5px 40px;font-size:1rem;line-height:2rem;position:relative;transition:0.5s;}#forkongithub a:hover{background:#060;color:#fff;}#forkongithub a::before,#forkongithub a::after{content:"";width:100%;display:block;position:absolute;top:1px;left:0;height:1px;background:#fff;}#forkongithub a::after{bottom:1px;top:auto;}@media screen and (min-width:200px){#forkongithub{position:absolute;display:block;top:0;right:0;width:200px;overflow:hidden;height:200px;}#forkongithub a{width:200px;position:absolute;top:60px;right:-60px;transform:rotate(45deg);-webkit-transform:rotate(45deg);box-shadow:4px 4px 10px rgba(0,0,0,0.8);}}</style>
  </head>

  <body>

    <span id="forkongithub"><a href="https://github.com/joelittlejohn/jsonschema2pojo">Fork me on GitHub</a></span>

    <div class="container">

      <h1>jsonschema2pojo</h1>
      <p class="lead">
        Generate Plain Old Java Objects from JSON or JSON-Schema.
      </p>

      <form id="form" method="post">
        <div class="row">
          <div class="span6">
            <textarea id="schema" name="schema">
{
  "type":"object",
  "properties": {
    "foo": {
      "type": "string"
    },
    "bar": {
      "type": "integer"
    },
    "baz": {
      "type": "boolean"
    }
  }
}</textarea>
          </div>
          <div class="span4">
            <div class="control-group">
            <label>
              Package
              <input id="targetpackage" name="targetpackage" value="com.example">
            </label>
            </div>

            <div class="control-group">
            <label>
              Class name
              <input id="classname" name="classname" value="Example">
            </label>
            </div>

            <label class="form-section">
              Source type:<br>
              <label class="radio inline">
                <input type="radio" name="sourcetype"
                       id="sourceType1" value="jsonschema" checked>
                JSON Schema
              </label>
              <label class="radio inline">
                <input type="radio" name="sourcetype"
                       id="sourceType2" value="json">
                JSON
              </label>
            </label>
            <label class="form-section">
              Annotation style:<br>
              <label class="radio inline">
                <input type="radio" name="annotationstyle"
                       id="annotationStyle1" value="jackson2" checked>
                Jackson 2.x
              </label>
              <label class="radio inline">
                <input type="radio" name="annotationstyle"
                       id="annotationStyle2" value="jackson1">
                Jackson 1.x
              </label>
              <label class="radio inline">
                <input type="radio" name="annotationstyle"
                       id="annotationStyle3" value="none">
                None
              </label>
            </label>
            <label class="form-section checkbox">
              <input name="generatebuilders" value="true" type="checkbox">Generate builder methods
            </label>
            <label class="checkbox">
              <input name="useprimitives" value="true" type="checkbox">Use primitive types
            </label>
            <label class="checkbox">
              <input name="uselongintegers" value="true" type="checkbox">Use long integers
            </label>
            <label class="checkbox">
              <input name="includehashcodeandequals" value="true" type="checkbox">Include <code>hashCode</code> and <code>equals</code>
            </label>
            <label class="checkbox">
              <input name="includetostring" value="true" type="checkbox">Include <code>toString</code>
            </label>
            <label class="checkbox">
              <input name="includejsr303annotations" value="true" type="checkbox">Include JSR-303 annotations
            </label>
          </div>
        </div>

        <div class="row form-section">
          <div class="span6">
            <button class="btn submit" id="preview-button" data-loading-text="Generating...">Preview</button>
            <button class="btn submit" id="jar-button" data-loading-text="Generating...">Jar</button>
            <a id="download-jar-link" class="hide"></a>
          </div>
        </div>
      </form>

      <div id="preview-modal" class="modal hide fade">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h3>Preview</h3>
        </div>
        <div id="preview" class="modal-body CodeMirror" style="overflow: auto">
        </div>
      </div>

      <div id="alert-area">
      </div>

      <div class="row form-section">
        <div class="span2">
            Use this tool offline:
        </div>
        <div class="span2">
          <a href="https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started#the-maven-plugin">
            Maven plugin
          </a>
        </div>
        <div class="span2">
          <a href="https://github.com/ben-manes/gradle-jsonschema2pojo-plugin">
            Gradle plugin
          </a>
        </div>
        <div class="span2">
          <a href="https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started#the-ant-task">
            Ant task
          </a>
        </div>
        <div class="span2">
          <a href="https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started#the-command-line-interface">
            CLI
          </a>
        </div>
        <div class="span2">
          <a href="https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started#using-jsonschema2pojo-within-your-java-project-embedded">
            Java API
          </a>
        </div>
      </div>

      <p class="muted form-section">
        <small>
          Copyright © 2012 Joe Littlejohn
          <a href="https://github.com/joelittlejohn/jsonschema2pojo/issues">
            Bugs?
          </a>
        </small>
      </p>
    </div>
  </body>

</html>
